package com.our.sys.project1.entity;

import java.io.Serializable;
import java.math.BigDecimal;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.TableGenerator;

import org.springside.modules.orm.grid.ViewField;

import com.our.sys.orm.hibernate.AuditableEntity;

@Entity
@Table(name = "B_HighValueMaterialDetail")
public class HighValueMaterialDetail extends AuditableEntity implements Serializable {

    /**
     * 
     */
    private static final long serialVersionUID = -6637087066408430838L;
    @ViewField
    private Long sId;

    @ViewField(header = "类别", width = 100, align = "left")
    private String type;

    @ViewField(header = "品牌名", width = 100, align = "left")
    private String name;

    @ViewField(header = "厂家耗材名", width = 100, align = "left")
    private String materialName;

    @ViewField(header = "规格", width = 100, align = "left")
    private String spec;

    @ViewField(header = "单位", width = 100, align = "left")
    private String unit;

    @ViewField(header = "参考进价", width = 100, align = "left")
    private BigDecimal price;

    @ViewField(header = "对应消耗品", width = 100, align = "left")
    private String consum;

    @ViewField(header = "耗材编码", width = 100, align = "left")
    private String code;

    @ViewField(header = "拼音助记符", width = 100, align = "left")
    private String py;

    @ViewField(header = "五笔助记符", width = 100, align = "left")
    private String wb;

    @Id
    @GeneratedValue(strategy = GenerationType.TABLE, generator = "Id_Generator")
    @TableGenerator(name = "Id_Generator", table = "ID_GENERATOR", pkColumnName = "GEN_NAME", valueColumnName = "GEN_VAL", pkColumnValue = "B_HighValueMaterialDetail")
    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getMaterialName() {
        return materialName;
    }

    public void setMaterialName(String materialName) {
        this.materialName = materialName;
    }

    public String getSpec() {
        return spec;
    }

    public void setSpec(String spec) {
        this.spec = spec;
    }

    public String getUnit() {
        return unit;
    }

    public void setUnit(String unit) {
        this.unit = unit;
    }

    public BigDecimal getPrice() {
        return price;
    }

    public void setPrice(BigDecimal price) {
        this.price = price;
    }

    public String getConsum() {
        return consum;
    }

    public void setConsum(String consum) {
        this.consum = consum;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getPy() {
        return py;
    }

    public void setPy(String py) {
        this.py = py;
    }

    public String getWb() {
        return wb;
    }

    public void setWb(String wb) {
        this.wb = wb;
    }

    public Long getsId() {
        return sId;
    }

    public void setsId(Long sId) {
        this.sId = sId;
    }

}
